import axios from '@/libs/api.request'

// 查询通用配置列表
export const listCommonConfig = (param) => {
  return axios.getRequest('/xcconfig/list', param)
}

// 保存通用配置
export const saveCommonConfig = (param) => {
  return axios.postRequest('/xcconfig/save', param)
}

// 查询通用配置详情
export const getCommonConfigDetail = (param) => {
  return axios.getRequest('/xcconfig/info/' + param)
}

// 更新通用配置信息
export const uptCommonConfig = (param) => {
  return axios.postRequest('/xcconfig/update', param)
}

// 获取通用配置信息
export const getConfigType = () => {
  return axios.getRequest('/xcconfig/getConfigType')
}

// 获取通用配置redis缓存
export const getRedisCommonConfig = (param) => {
  return axios.getRequest('/redis/getRedisCommonConfig', param)
}

// 获取通用配置redis缓存
export const setRedisCommonConfig = (param) => {
  return axios.getRequest('/redis/setRedisCommonConfig', param)
}
